<?php

namespace Application;

// the application subclass of the system controller allows us to add application specific logic on a global basis
abstract class Controller extends \System\Controller
{
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    ///////////////////////////////////////////////////////////////// PUBLIC ROUTINES ////////////////////////////////////////////////////////////////
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    // for debugging purposes, we do not prevent the direct printing / echoing of data to STDOUT,
    // however, it is bad practice and should be avoided, and you should use this render method
    // instead as it will call what needs to be called to get its groove thang on, as such when
    // this method is called it will wipe out any existing output buffers
    public function render()
    {
        parent::getOutput()->setLink('/img/' . _c('id') . '/favicon.ico', 'icon');

        parent::getOutput()->setStyle('main');
        parent::getOutput()->setStyle('w2ui');

        parent::getOutput()->setScript('w2ui');
        parent::getOutput()->setScript('main');

        parent::render();
    }
}

?>